﻿using System;
using System.ComponentModel.DataAnnotations;

namespace ParkManagement
{
    /// <summary>
    /// 创建里程数据传输对象
    /// </summary>
    public class CreateConsumptionDto
    {
        [Display(Name = "车牌号")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string PlateNo { get; set; }

        [Display(Name = "行驶日期")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public DateTime TravelDate { get; set; }

        [Display(Name = "行驶里程")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int TravelDistance { get; set; }

        [Display(Name = "金额")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public decimal Amount { get; set; }

        [Display(Name = "加油量")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public double GasFilling { get; set; }
    }
}